from django.db import models
class collection(models.Model):
    stock_id = models.CharField(primary_key=True,max_length=30)



class buy(models.Model):
    stock_id=models.CharField(primary_key=True,max_length=30)
    stock_name=models.CharField(max_length=30)
    volume=models.IntegerField()


class transaction(models.Model):
    trans_type=models.CharField(max_length=30)
    stock_id=models.CharField(max_length=30)
    stock_name=models.CharField(max_length=30)
    trans_price=models.DecimalField(max_digits=10,decimal_places=2)
    trans_volume=models.IntegerField()

    



